
<h1>System Logs</h1>

	<p>
	
	<div id="search_results-container">
	
	
<table class="greentable">
    <thead>
    <tr>
		<th>#</th>
		<th>Logged&nbsp;</th>
		<th>Type&nbsp;</th>
		<th>Log&nbsp;</th>
		<th>By&nbsp;</th>
    </tr>
    </thead>
    <tbody>
	<?php 
			foreach($logs->result() as $log){ 
	?>
    <tr>
        <td><?php echo $log->id ?></td>
		<td><?php echo $log->l_added>0 ? date('D, m/d/Y h:i:s A T', $log->l_added) : 'N/A'; ?></td>
        <td><?php echo $log->type ?></td>
        <td><?php echo $log->log; ?></td>
        <td><?php echo $log->logged_by; ?></td>
	</tr>
    <?php } ?>
	<?php
			if($logs->num_rows==0)
			{
	?>
	<tr><td colspan="9">No logs found.</td></tr>
	<?php
			}
			else
			{
	?>
	<?php
			}
	?>
    </tbody>
</table>

	</div>